package com.lyn.utils;

import android.media.AudioManager;
import android.media.ToneGenerator;

public class ToneUtil {
    private static final ToneGenerator mToneGenerator = new ToneGenerator(AudioManager.STREAM_MUSIC, 100);

    public static synchronized void playPromptTone() {
        mToneGenerator.startTone(ToneGenerator.TONE_PROP_PROMPT, 100);
    }

    public static synchronized void playPromptTone(int code) {
        mToneGenerator.startTone(code, 100);
    }
}
